#ifndef CUTILITY_H_
#define CUTILITY_H_

#include <windows.h>
#include <iostream>
#if defined(_DEBUG)
#pragma comment(linker, "/SUBSYSTEM:Console")
#define LOG(str) std::cout << "Console>> " << str << std::endl
#else
#pragma comment(linker, "/SUBSYSTEM:Windows")
#define LOG(str)
#endif



template<class Interface>
inline void
SafeRelease(
			Interface **ppInterfaceToRelease
			)
{
	if (*ppInterfaceToRelease != NULL)
	{
		(*ppInterfaceToRelease)->Release();

		(*ppInterfaceToRelease) = NULL;
	}
}


















#endif